package com.dkm.biz.gl.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.biz.gl.domain.GlText;
import com.dkm.biz.gl.repository.GlTextRepository;
import com.dkm.biz.gl.persistence.dao.GlTextQueryDao;
import com.dkm.biz.gl.persistence.entity.GlTextPo;

/**
 * 对象功能:t_gl_text Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2016-12-08 15:42:00
 */
@Repository
public class GlTextRepositoryImpl extends AbstractRepository<String, GlTextPo,GlText> implements GlTextRepository{
	  
	@Resource
	private  GlTextQueryDao glTextQueryDao;

	public GlText newInstance() {
		GlTextPo po = new GlTextPo();
		GlText glText = SpringHelper.getBean(GlText.class);
		glText.setData(po);
		return glText;
	}

	public GlText newInstance(GlTextPo po) {
		GlText glText = SpringHelper.getBean(GlText.class);
		glText.setData(po);
		return glText;
	} 
	
	@Override
	protected IQueryDao<String, GlTextPo> getQueryDao() {
		return glTextQueryDao;
	}
	
}
